import os, time, json, random, requests
from pprint import pprint

path ="/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions"
# glslFiles = []
# glslTitles = []
# for root, dirs, files in os.walk(path):
#     # print(files)
#     for file in files:
#         if(file.endswith(".glsl")):
#             # print(os.path.join(root,file))
#             # print(file, type(file))
#             glslTitles.append(file.split('.')[0])
#             glslFiles.append(os.path.join(root,file))
# pprint(glslTitles)
# pprint(glslFiles)

glslTitles = ['fade',
 'fadegrayscale',
 'GlitchDisplace',
 'crosswarp',
 'cube',
 'Mosaic',
 'CrazyParametricFun',
 'wind',
 'polar_function',
 'directionalwipe',
 'CircleCrop',
 'cannabisleaf',
 'Swirl',
 'tangentMotionBlur',
 'wipeLeft',
 'multiply_blend',
 'burn',
 'flyeye',
 'LinearBlur',
 'squeeze',
 'GridFlip',
 'circle',
 'StereoViewer',
 'PolkaDotsCurtain',
 'DreamyZoom',
 'fadecolor',
 'randomsquares',
 'CrossZoom',
 'directionalwarp',
 'ButterflyWaveScrawler',
 'ZoomInCircles',
 'hexagonalize',
 'squareswire',
 'ColourDistance',
 'windowblinds',
 'WaterDrop',
 'BowTieHorizontal',
 'kaleidoscope',
 'crosshatch',
 'DoomScreenTransition',
 'colorphase',
 'swap',
 'Dreamy',
 'Bounce',
 'FilmBurn',
 'circleopen',
 'InvertedPageCurl',
 'BowTieVertical',
 'ripple',
 'BowTieWithParameter',
 'wipeUp',
 'TVStatic',
 'SimpleZoom',
 'rotate_scale_fade',
 'pixelize',
 'doorway',
 'heart',
 'angular',
 'Radial',
 'displacement',
 'GlitchMemories',
 'luminance_melt',
 'Directional',
 'wipeDown',
 'wipeRight',
 'pinwheel',
 'windowslice',
 'morph',
 'undulatingBurnOut',
 'perlin',
 'luma']

glslFiles = ['/home/ym/github/gl-transitions/transitions/fade.glsl',
 '/home/ym/github/gl-transitions/transitions/fadegrayscale.glsl',
 '/home/ym/github/gl-transitions/transitions/GlitchDisplace.glsl',
 '/home/ym/github/gl-transitions/transitions/crosswarp.glsl',
 '/home/ym/github/gl-transitions/transitions/cube.glsl',
 '/home/ym/github/gl-transitions/transitions/Mosaic.glsl',
 '/home/ym/github/gl-transitions/transitions/CrazyParametricFun.glsl',
 '/home/ym/github/gl-transitions/transitions/wind.glsl',
 '/home/ym/github/gl-transitions/transitions/polar_function.glsl',
 '/home/ym/github/gl-transitions/transitions/directionalwipe.glsl',
 '/home/ym/github/gl-transitions/transitions/CircleCrop.glsl',
 '/home/ym/github/gl-transitions/transitions/cannabisleaf.glsl',
 '/home/ym/github/gl-transitions/transitions/Swirl.glsl',
 '/home/ym/github/gl-transitions/transitions/tangentMotionBlur.glsl',
 '/home/ym/github/gl-transitions/transitions/wipeLeft.glsl',
 '/home/ym/github/gl-transitions/transitions/multiply_blend.glsl',
 '/home/ym/github/gl-transitions/transitions/burn.glsl',
 '/home/ym/github/gl-transitions/transitions/flyeye.glsl',
 '/home/ym/github/gl-transitions/transitions/LinearBlur.glsl',
 '/home/ym/github/gl-transitions/transitions/squeeze.glsl',
 '/home/ym/github/gl-transitions/transitions/GridFlip.glsl',
 '/home/ym/github/gl-transitions/transitions/circle.glsl',
 '/home/ym/github/gl-transitions/transitions/StereoViewer.glsl',
 '/home/ym/github/gl-transitions/transitions/PolkaDotsCurtain.glsl',
 '/home/ym/github/gl-transitions/transitions/DreamyZoom.glsl',
 '/home/ym/github/gl-transitions/transitions/fadecolor.glsl',
 '/home/ym/github/gl-transitions/transitions/randomsquares.glsl',
 '/home/ym/github/gl-transitions/transitions/CrossZoom.glsl',
 '/home/ym/github/gl-transitions/transitions/directionalwarp.glsl',
 '/home/ym/github/gl-transitions/transitions/ButterflyWaveScrawler.glsl',
 '/home/ym/github/gl-transitions/transitions/ZoomInCircles.glsl',
 '/home/ym/github/gl-transitions/transitions/hexagonalize.glsl',
 '/home/ym/github/gl-transitions/transitions/squareswire.glsl',
 '/home/ym/github/gl-transitions/transitions/ColourDistance.glsl',
 '/home/ym/github/gl-transitions/transitions/windowblinds.glsl',
 '/home/ym/github/gl-transitions/transitions/WaterDrop.glsl',
 '/home/ym/github/gl-transitions/transitions/BowTieHorizontal.glsl',
 '/home/ym/github/gl-transitions/transitions/kaleidoscope.glsl',
 '/home/ym/github/gl-transitions/transitions/crosshatch.glsl',
 '/home/ym/github/gl-transitions/transitions/DoomScreenTransition.glsl',
 '/home/ym/github/gl-transitions/transitions/colorphase.glsl',
 '/home/ym/github/gl-transitions/transitions/swap.glsl',
 '/home/ym/github/gl-transitions/transitions/Dreamy.glsl',
 '/home/ym/github/gl-transitions/transitions/Bounce.glsl',
 '/home/ym/github/gl-transitions/transitions/FilmBurn.glsl',
 '/home/ym/github/gl-transitions/transitions/circleopen.glsl',
 '/home/ym/github/gl-transitions/transitions/InvertedPageCurl.glsl',
 '/home/ym/github/gl-transitions/transitions/BowTieVertical.glsl',
 '/home/ym/github/gl-transitions/transitions/ripple.glsl',
 '/home/ym/github/gl-transitions/transitions/BowTieWithParameter.glsl',
 '/home/ym/github/gl-transitions/transitions/wipeUp.glsl',
 '/home/ym/github/gl-transitions/transitions/TVStatic.glsl',
 '/home/ym/github/gl-transitions/transitions/SimpleZoom.glsl',
 '/home/ym/github/gl-transitions/transitions/rotate_scale_fade.glsl',
 '/home/ym/github/gl-transitions/transitions/pixelize.glsl',
 '/home/ym/github/gl-transitions/transitions/doorway.glsl',
 '/home/ym/github/gl-transitions/transitions/heart.glsl',
 '/home/ym/github/gl-transitions/transitions/angular.glsl',
 '/home/ym/github/gl-transitions/transitions/Radial.glsl',
 '/home/ym/github/gl-transitions/transitions/displacement.glsl',
 '/home/ym/github/gl-transitions/transitions/GlitchMemories.glsl',
 '/home/ym/github/gl-transitions/transitions/luminance_melt.glsl',
 '/home/ym/github/gl-transitions/transitions/Directional.glsl',
 '/home/ym/github/gl-transitions/transitions/wipeDown.glsl',
 '/home/ym/github/gl-transitions/transitions/wipeRight.glsl',
 '/home/ym/github/gl-transitions/transitions/pinwheel.glsl',
 '/home/ym/github/gl-transitions/transitions/windowslice.glsl',
 '/home/ym/github/gl-transitions/transitions/morph.glsl',
 '/home/ym/github/gl-transitions/transitions/undulatingBurnOut.glsl',
 '/home/ym/github/gl-transitions/transitions/perlin.glsl',
 '/home/ym/github/gl-transitions/transitions/luma.glsl']


glslFiles = ['/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/wipeRight.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/pixelize.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/Dreamy.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/BowTieWithParameter.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/PolkaDotsCurtain.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/polar_function.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/StereoViewer.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/wind.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/ButterflyWaveScrawler.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/ColourDistance.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/BowTieVertical.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/crosshatch.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/wipeUp.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/displacement.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/Swirl.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/rotate_scale_fade.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/squareswire.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/luminance_melt.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/colorphase.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/LinearBlur.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/FilmBurn.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/GridFlip.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/heart.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/SimpleZoom.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/hexagonalize.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/randomsquares.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/cube.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/InvertedPageCurl.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/Directional.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/tangentMotionBlur.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/angular.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/ZoomInCircles.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/DreamyZoom.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/ripple.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/Mosaic.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/circle.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/kaleidoscope.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/Radial.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/BowTieHorizontal.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/directionalwipe.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/morph.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/TVStatic.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/GlitchMemories.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/perlin.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/windowslice.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/CrazyParametricFun.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/CircleCrop.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/DoomScreenTransition.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/circleopen.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/wipeLeft.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/crosswarp.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/wipeDown.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/multiply_blend.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/Bounce.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/pinwheel.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/doorway.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/undulatingBurnOut.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/fadegrayscale.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/fade.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/cannabisleaf.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/luma.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/GlitchDisplace.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/swap.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/directionalwarp.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/WaterDrop.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/flyeye.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/windowblinds.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/squeeze.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/fadecolor.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/burn.glsl',
 '/home/mc/taozhuo/ffmpeg-gl-transition/gl-transitions/transitions/CrossZoom.glsl']


